package com.tjbank.cssys.mybatis.mapper;


import com.tjbank.cssys.mybatis.entity.IamSequence;
import com.tjbank.cssys.mybatis.entity.IamSequenceKey;
import com.tjbank.cssys.mybatis.sqlbuilder.IamSequenceSqlBuilder;

import java.util.List;

/**
 * IamSequenceMapper
 * 
 * @author PG(Auto Generator)
 * @version V2.0
 */
public interface IamSequenceMapper {

    /**
     * 根据SqlBuilder查询列表，返回值包含大字段栏位
     * 
     * @param iamSequenceSqlBuilder
     * @return
     * @throws Exception
     */
    public List<IamSequence> selectBySqlBuilderWithBLOBs(IamSequenceSqlBuilder iamSequenceSqlBuilder) throws RuntimeException;

    /**
     * 根据SqlBuilder查询列表，返回值不包含大字段栏位
     * 
     * @param iamSequenceSqlBuilder
     * @return
     * @throws Exception
     */
    public List<IamSequence> selectBySqlBuilder(IamSequenceSqlBuilder iamSequenceSqlBuilder) throws RuntimeException;

    /**
     * 根据主键查询单个对象
     * 
     * @param iamSequenceKey
     * @return
     * @throws Exception
     */
    public IamSequence selectByPrimaryKey(IamSequenceKey iamSequenceKey) throws RuntimeException;

    /**
     * 根据SqlBuilder统计记录条数
     * 
     * @param iamSequenceSqlBuilder
     * @return
     * @throws Exception
     */
    public long countBySqlBuilder(IamSequenceSqlBuilder iamSequenceSqlBuilder) throws RuntimeException;

    /**
     * 单条插入新增记录
     * 
     * @param iamSequence
     * @return
     * @throws Exception
     */
    public int insert(IamSequence iamSequence) throws RuntimeException;

    /**
     * 批量插入新增记录
     * 
     * @param listIamSequence
     * @return
     * @throws Exception
     */
    public int insertUseBatch(List<IamSequence> listIamSequence) throws RuntimeException;

    /**
     * 根据SqlBuilder更新记录，空值会持久化到数据库
     * 
     * @param iamSequenceSqlBuilder
     * @return
     * @throws Exception
     */
    public int updateBySqlBuilder(IamSequenceSqlBuilder iamSequenceSqlBuilder) throws RuntimeException;

    /**
     * 根据SqlBuilder更新记录，空值不会持久化到数据库
     * 
     * @param iamSequenceSqlBuilder
     * @return
     * @throws Exception
     */
    public int updateBySqlBuilderSelective(IamSequenceSqlBuilder iamSequenceSqlBuilder) throws RuntimeException;

    /**
     * 根据主键更新记录，空值会持久化到数据库
     * 
     * @param iamSequenceKey
     * @return
     * @throws Exception
     */
    public int updateByPrimaryKey(IamSequenceKey iamSequenceKey) throws RuntimeException;

    /**
     * 根据主键更新记录，空值不会持久化到数据库
     * 
     * @param iamSequenceKey
     * @return
     * @throws Exception
     */
    public int updateByPrimaryKeySelective(IamSequenceKey iamSequenceKey) throws RuntimeException;

    /**
     * 根据SqlBuilder删除记录
     * 
     * @param iamSequenceSqlBuilder
     * @return
     * @throws Exception
     */
    public int deleteBySqlBuilder(IamSequenceSqlBuilder iamSequenceSqlBuilder) throws RuntimeException;

    /**
     * 根据主键删除记录
     * 
     * @param iamSequenceKey
     * @return
     * @throws Exception
     */
    public int deleteByPrimaryKey(IamSequenceKey iamSequenceKey) throws RuntimeException;

}